<template>
  <div>
      {{hw}}
      <button @click="turn">翻转</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      hw:'Hello World!'
    }
  },

  created () {

  },

  methods: {
    turn(){
      this.hw = this.hw.split('').reverse().join('');
    }
  }
}
</script>

<style scoped lang='less'>

</style>
